var t = require("../../EA9BD637C63E4BDF8CFDBE30C6897135.js");

Component({
    properties: {
        date: String,
        tabItem: Object,
        item: Object,
        index: Number,
        source: Number,
        bannerId: Number,
        page: Number,
        op_type: Number,
        word: String,
        navData: Object
    },
    data: {},
    methods: {
        cancelBut: function(e) {
            if (console.log(e), 1 == this.data.source) s = '{"event":"search_list_face_click","key":{"id":' + this.data.item.id + "}}"; else if (2 == this.data.source) s = '{"event":"topic_detail_face_click","key":{"tid":' + this.data.bannerId + ',"id":' + this.data.item.id + "}}"; else if (3 == this.data.source) {
                for (var a = this.data.navData, i = 0; i < a.length; i++) if (a[i].id == this.data.bannerId) var d = a[i].title;
                s = '{"event":"category_face_click","key":{"id":' + this.data.item.id + ',"name":"' + d + '"}}';
            } else if (5 == this.data.source) var s = '{"event":"home_recommend_face_click","key":{"id":' + this.data.item.id + "}}"; else 6 == this.data.source || 7 == this.data.source || this.data.source;
            t.wxLog(s);
            var r = e.target.dataset.id, c = e.target.dataset.videourl, o = this.data.bannerid, n = this.data.index, h = this.data.page, m = e.target.dataset.itempic, u = JSON.stringify(this.data.tabItem), l = this.data.word, p = this.data.date;
            wx.setStorageSync("tabItem", u), wx.navigateTo({
                url: "/pages/headDetails/headDetails?bannerId=" + o + "&id=" + r + "&idx=" + n + "&page=" + h + "&itempic=" + m + "&op_type=" + this.data.op_type + "&word=" + l + "&thistype=" + this.data.source + "&date=" + p + "&videourl=" + c
            });
        }
    }
});